package com.example.mybatisstudy.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("users")
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Version
    private Integer version;
    private String name;
    private Integer age;
    private String email;
    @TableField(value = "manager_id", exist = false)
    private String manageId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private String otherField;
    @TableLogic //逻辑删除
    private Integer deleted;
}
